<?php
// reference the file containing the profiel class
require_once("geodb.class.php");

// create a new profiel instance
$profiel = new Profiel();

  $firstname = $_POST['firstname']; 
  $lastname = $_POST['lastname']; 
  $woonplaats = $_POST['woonplaats']; 
  $email = $_POST['email']; 
  $telefoon = $_POST['telefoon'];
  $bio = $_POST['bio'];
 
  // check if we have valid values 
  if ($firstname != '' && $lastname != '' && $woonplaats != '' && $email != '' && $telefoon != ''&& $bio != '' ) 
  {
    // post the message to the database     
    $profiel->postMessage($firstname, $lastname, $woonplaats, $email, $telefoon, $bio); 
  }
 
  /*
   $user = $_POST['firstname']; 
   $email = $_POST['email']; 
 
  // check if we have valid values 
  if ($user != '' && $email != '' ) 
  {
    // post the message to the database     
    $profiel->postMessage($user, $email); 
  }
  */
?>
